<!--#include file="lib/utf-8.asp"-->
<!--#include file="lib/asp-common-lib.asp"-->
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>EOC监控系统</title>
<!--#include file="lib/plugins.asp"-->
<style type="text/css">
  .ui-datepicker table {
    border: 0;
  }
</style>
<script type="text/javascript">
  $(function() {
    $.ajaxSetup ({
        cache: false, //关闭AJAX相应的缓存
        beforeSend:function() {
            $("#tablelist>tbody").text("Loading...");
            //$("#bt_search").attr("disabled",true);
        },
        complete:function() {
            //$("#loading").hide();
            //$("#bt_search").attr("disabled",false);
        }
    });
    ndflowid=$("#ndflowid").val();
    dataDay=$("#dataDay").val();
    rd(dataDay);
    $("#dataDay").change(function(){
        dataDay=$("#dataDay").val();
        $("#tablelist>tbody").html("");
        rd(dataDay);
    });
    function rd(dataDay){
        $.get("ndflowlog_main.asp?ndflowid="+ndflowid+"&dataDay="+dataDay,function(data){
            $("#tablelist>tbody").html(data);
        });
        
    }
  });
</script>
<!--#include file="lib/js-google-analytics.asp"-->
</head>
<%
' if not CheckPostFlag(session("aaPostFlag"),1,3) then call JumpErrorPage(2)
Set conn_ndflow = Server.CreateObject("ADODB.CONNECTION")
db_ndflow = "DRIVER=SQLite3 ODBC Driver;Database="&Server.MapPath("ndflow.db3")
conn_ndflow.Open db_ndflow


ndflowid=saferequest("ndflowid",1)
%>
<body>
        <table id="tablelist" class="full">
            <thead>
                <tr><th colspan="10" scope="col">监控记录
                    <input type="hidden" id="ndflowid" name="ndflowid" value="<%=ndflowid%>" />
                    <select id="dataDay" name="dataDay">
                    <%
                        sql = "select date(dtlog) as dataday from ndflowlog where ndflowid="&ndflowid&" group by date(dtlog) order by date(dtlog) desc"
                        Set rs_day = Server.CreateObject("ADODB.Recordset")
                        rs_day.Open sql,conn_ndflow,1,1
                        do while not rs_day.eof
                    %>
                        <option value="<%=rs_day("dataday")%>"><%=rs_day("dataday")%></option>
                    <%
                            rs_day.movenext
                        loop
                        rs_day.close
                        set rs_day=nothing
                    %>    
                        <option value="ALL">ALL</option>
                    </select>
                </th></tr>
            </thead>
            <tbody>
            </tbody>
        </table>
</body>
</html>
<%
conn_ndflow.close
set conn_ndflow=nothing

%>

